package com.tqjc.system.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tqjc.system.common.entity.VO.AreaInfoVO;
import com.tqjc.system.common.entity.VO.FatherAreaInfoVO;
import com.tqjc.system.common.exception.AddTaskException;
import com.tqjc.system.system.entity.SysAreaInfoEntity;
import com.tqjc.system.system.entity.SysMaterialInfoEntity;

import java.util.List;

/**
 * @author 86195
 * @version 1.0
 * @description 库区信息服务
 * @date 2023/10/17 14:30
 */
public interface SysAreaInfoService extends IService<SysAreaInfoEntity> {
    int queryMaterialNum(String wasteSteelSpanNo, List<String> taskMaterialList);


    SysAreaInfoEntity queryMaterialNoIndex(String materialNo,String spanNo,int areaNum);

    IPage<SysAreaInfoEntity> getListByPage(Page<SysAreaInfoEntity> pageEntity, AreaInfoVO areaInfoVO);

    int updateInfo(AreaInfoVO areaInfoVO);

    List<SysAreaInfoEntity> getList(AreaInfoVO areaInfoVO);

    FatherAreaInfoVO getFatherAreaInfo(String idkey);

    boolean addAreaNum(FatherAreaInfoVO fatherAreaInfoVO);

    boolean addChildArea(AreaInfoVO areaInfoVO) throws AddTaskException;

    boolean delChildArea(String id);

    public SysAreaInfoEntity queryMaterialNoIndex(String materialNo,String spanNo);
}
